import URL from '@/config/url'
import utils from '@/utils/utils'

export default {

	// 关注设计师列表
	getdegin(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/designer/designer/getFollowList', data })
	},
	// 关注店铺列表
	getshop(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/shop/store/followList', data })
	},
	// 关注施工队列表
	getbuild(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/builder/BuilderTeam/getFollowList', data })
	},
	// 关注小区列表
	getplot(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/house/Estate/getFollowList', data })
	},
	// 关注话题列表
	gettheme(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/house/Community/getFollowZoneList', data })
	},
	// 收藏商品列表
	getshoplist(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/shop/product/collectList', data })
	},
	// 收藏动态列表
	getCollectList(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/designer/DesignTrend/getSupportList', data })
	},
	// 收藏案例列表
	getDesignCaset(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/designer/DesignCase/getSupportList', data })
	},
	// 收藏话题列表
	getCommunity(params = {}) {
		let data = {
			page:params.page,
			pagesize:15
		}
		return utils.uniRequest({ url: URL.BASE+ '/house/Community/getTopicSupportList', data })
	},
	// 档案详情
	getDetail(params = {}) {
		let data = {
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/RenovateArchive/getDetail', data })
	},
	// 档案编辑
	getedit(params = {}) {
		let data = {
			city: params.city,
			house_type: params.house_type,
			house_area: params.house_area,
			room_type: params.room_type,
			renovate_budget: params.renovate_budget,
			phone: params.phone,
			remark: params.remark,
			house_thumb_url: params.house_thumb_url,
		}
		return utils.uniRequest({ url: URL.BASE+ '/renovate/RenovateArchive/edit', data })
	},
	// 用户信息
	getuser(params = {}) {
		let data = {
		}
		return utils.uniRequest({ url: URL.BASE+ '/base/userinfo', data })
	},
   // 商品足迹
   getlogList(params = {}) {
   	let data = {
   		page:params.page,
   		pagesize:15
   	}
   	return utils.uniRequest({ url: URL.BASE+ '/shop/product/logList', data })
   },
   // 案例足迹
   getCaseTrace(params = {}) {
   	let data = {
   		page:params.page,
   		pagesize:15
   	}
   	return utils.uniRequest({ url: URL.BASE+ '/designer/CaseTrace/getList', data })
   },
   // 动态足迹
   getTrendTrace(params = {}) {
   	let data = {
   		page:params.page,
   		pagesize:15
   	}
   	return utils.uniRequest({ url: URL.BASE+ '/dt/base/Trend/getTraceList', data })
   },
  
  // 收费优惠卷
  getsaleCoupon(params = {}) {
  	let data = {
  	}
  	return utils.uniRequest({ url: URL.BASE+ '/shop/coupon/saleCoupon', data })
  },
  // 优惠卷提交订单
  getCouponOrder(params = {}) {
  	let data = {
  		coupon_id:params.coupon_id,
  		num:params.num
  	}
  	return utils.uniRequest({ url: URL.BASE+ '/shop/CouponOrder/unified', data })
  },
  // 订单统计
  getcount(params = {}) {
  	let data = {
  	}
  	return utils.uniRequest({ url: URL.BASE+ '/base/order/count', data })
  },
  // 数据统计
	getUserCount(params = {}) {
		let data = {
			// user_id
		}
		return utils.uniRequest({ url: URL.BASE+ '/user/user/count', data })
	},


}